home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C ++ / Frameworks / MacZoop 1.6.5 / More Classes / Window Classes / xDEFJump.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-07  |  725 b   |  40 lines  |  [TEXT/CWIE]

  1. /*************************************************************************************************
  2. *
  3. *        xDEFJump.h            - allows embedded xDEFs to be called internally
  4. *
  5. *
  6. *        13/7/94  Graham Cox
  7. *
  8. *
  9. *************************************************************************************************/
  10.  
  11.  
  12. #include    "MixedMode.h"
  13.  
  14.  
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18.  
  19.  
  20. #pragma options align= mac68k
  21.  
  22. typedef struct
  23. {
  24.    short   Jmp;            // jmp instruction
  25.    void*   Routine;        // address to jump to
  26. }
  27. JmpInstructionTemplate;
  28.  
  29. #pragma options align= reset
  30.  
  31.  
  32.  
  33. Handle    GetUniversalFunctionHandle(ProcPtr functionAddress,ProcInfoType pInfo);
  34. void     PatchJmpInstruction(void* patchAddress, void* jumpAddress);
  35.  
  36.  
  37. #ifdef __cplusplus
  38. }
  39. #endif
  40.